Version:=0.99.11
ModuleName:=quagga

Object:=quagga.tgz
ObjectDir:=$(ModuleName)-$(Version)/
ObjectSource:=$(ModuleName)-$(Version).tar.gz

INSTALL_DIR:=`pwd`

.PHONY:all clean dist_clean

all:$(Object)
	
$(Object):$(ObjectSource)
	rm -rf usr
	tar -xzf $(ObjectSource)
	cd $(ObjectDir) && ./configure  
	$(MAKE) -C $(ObjectDir)  
	$(MAKE) -C $(ObjectDir) install DESTDIR=$(INSTALL_DIR)
	rm -fr usr/local/include usr/local/share
	find usr/local/lib/ -name *.a -exec rm -rf {} \;
	$(g_STRIP)
	tar -czf $(Object) usr

clean:
	rm -fr $(Object) usr

dist_clean: clean
	rm -fr $(ObjectDir) $(ObjectSource)

include ../Makefile.Res
